package br.com.sigmah.domain.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="rep_restricao_professor")
public class RestricaoProfessor  implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue
	@Column(name = "rep_it_id")
	private Long id;

	@OneToOne
	private Professor professor;
	
    @OneToMany(mappedBy="restricaoProfessor")
	private List<HorarioIndisponivelProfessor> horariosIndisponiveisProfessor;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Professor getProfessor() {
		return professor;
	}

	public void setProfessor(Professor professor) {
		this.professor = professor;
	}

	public List<HorarioIndisponivelProfessor> getHorariosIndisponiveisProfessor() {
		return horariosIndisponiveisProfessor;
	}

	public void setHorariosIndisponiveisProfessor(
			List<HorarioIndisponivelProfessor> horariosIndisponiveisProfessor) {
		this.horariosIndisponiveisProfessor = horariosIndisponiveisProfessor;
	}
	
	
	
}
